// 专门处理部门管理相关的api
//导入request.js
import request from '@/utils/request'

//部门列表的查询
export const getDeptList = () => request.get('/depts')

//添加部门
export const addDept = (dept) =>  request.post('/depts', dept)

//根据id查询部门
export const getDeptById = (id) => request.get(`/depts/${id}`)

//修改部门
export const updateDept = (dept) => request.put(`/depts`, dept)

//删除部门
export const deleteDept = (id) => request.delete(`/depts?id=${id}`)


